// 自动生成模板WmsPurchaseDetail
package biz

import "github.com/go-kratos/kratos/v2/log"

// wmsPurchaseDetail表 结构体  WmsPurchaseDetail
type WmsPurchaseDetail struct {
	Id         *int     `json:"id" form:"id" gorm:"primarykey;column:id;size:19;"`                                        //id字段
	PurchaseId *int     `json:"purchaseId" form:"purchaseId" gorm:"comment:采购单id;column:purchase_id;size:19;"`            //采购单id
	SkuId      *int     `json:"skuId" form:"skuId" gorm:"comment:采购商品id;column:sku_id;size:19;"`                          //采购商品id
	SkuNum     *int     `json:"skuNum" form:"skuNum" gorm:"comment:采购数量;column:sku_num;size:10;"`                         //采购数量
	SkuPrice   *float64 `json:"skuPrice" form:"skuPrice" gorm:"comment:采购金额;column:sku_price;size:18;"`                   //采购金额
	WareId     *int     `json:"wareId" form:"wareId" gorm:"comment:仓库id;column:ware_id;size:19;"`                         //仓库id
	Status     *int     `json:"status" form:"status" gorm:"comment:状态[0新建，1已分配，2正在采购，3已完成，4采购失败];column:status;size:10;"` //状态[0新建，1已分配，2正在采购，3已完成，4采购失败]
}

// TableName wmsPurchaseDetail表 WmsPurchaseDetail自定义表名 wms_purchase_detail
func (WmsPurchaseDetail) TableName() string {
	return "wms_purchase_detail"
}

type WmsPurchaseDetailRepo interface {
}

type WmsPurchaseDetailUsecase struct {
	repo WmsPurchaseDetailRepo
	log  *log.Helper
}

func NewWmsPurchaseDetailUsecase(repo GreeterRepo, logger log.Logger) *WmsPurchaseDetailUsecase {
	return &WmsPurchaseDetailUsecase{repo: repo, log: log.NewHelper(logger)}
}
